package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;


/**
 * springboot默认是只加载 自己项目下的application.yml/properties
 * 如果要加载其他本项目或依赖项目下的的properties用@PropertySource
 * 如果要加载其他本项目或依赖项目下的xml用@ImportResource
 * 且在springboot中classpath= 本项目 + 依赖下的,而在普通的ssm中classpath只是本项目要加载依赖下的得用classpath*
 */
@SpringBootApplication
@PropertySource(value = {"classpath:/a.properties","classpath:/c.properties"})
//@ComponentScan("com.example.*")
public class ModuleDApplication {

    public static void main(String[] args) {
        SpringApplication.run(ModuleDApplication.class, args);
    }

}
